home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5678 < prev    next >
Encoding:
Text File  |  1996-08-05  |  899 b   |  27 lines

  1. Path: stern.fokus.gmd.de!news
  2. From: Watson <sayegh@fokus.gmd.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: const char??
  5. Date: Tue, 20 Feb 1996 12:04:50 +0100
  6. Organization: GMD FOKUS - Research Institute for Open Communication Systems
  7. Message-ID: <3129AAD2.2701@fokus.gmd.de>
  8. References: <31287436.1235873@news.inforamp.net>
  9. NNTP-Posting-Host: pollux.fokus.gmd.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-2
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. Danny Heuman wrote:
  16. > What is a const char?  I am getting an error at compile time stating
  17. > that it can not convert an int to a const char.  I'm using strcpy.
  18.  
  19. Neither an int nor a char should be involved
  20. into a call to
  21.  
  22. char *strcpy(char *dst, const char *src);
  23. -- 
  24. *    Greetinx from Watson (sayegh@fokus.gmd.de)
  25.     http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
  26.     signal(SIGSEGV,SIG_IGN);
  27.